package com.xja.service;

import com.xja.entity.Comment;
import com.xja.entity.Register;
import com.xja.entity.Room;
import com.xja.entity.pojo.RoomAndBills;
import com.xja.entity.pojo.RoomAndIndent;

import java.util.List;

public interface LwlService {
    List<Room> findRoomByPrice(int price) ;

    List<Room> findRoom();

    //退房，需要先查询房间状态是0的状态，将房间号展示给前端
    List<Room> findRoomByName(String userName);
    //退房
    Integer checkOutById(int roomId);
    //评价
    Integer findUserIdByName(String userName);
    List<RoomAndBills> findBillsById(int userId);
    Integer estimate(Comment comment);
    //入住功能
    //查询
    List<RoomAndIndent> fidIndent(String findUserName);
    //登记
     Integer register(Register register);
}
